Skip to content

Rework @core-js/builder#1506

Merged
zloirock merged 4 commits intov4from
v4-rd
Feb 4, 2026
Merged

Rework @core-js/builder#1506
zloirock merged 4 commits intov4from
v4-rd

Conversation

@zloirock
Copy link
Owner

@zloirock zloirock commented Feb 4, 2026

  • Replace Webpack with Rolldown
  • Since we need support of pre-ES6 engines and Rolldown contain ES6 syntax in helpers / wrappers, transpile the output with SWC
  • Add minify option with SWC (enabled by default, will think about which option to leave as the default.)
  • Use SWC only in cases of minification or target engines without support for the required syntax
  • Depends on cases, that makes the builder 5x-20x faster
  • This speedup is a required step for the implementation of service, Build next generation polyfill service using core-js polyfills #638
  • Added some mechanics (__external in @core-js/compat) that could be used in the future for targets-based syntax transpiling of the polyfill
  • Since Rolldown is distributed as ESM, move the package to ESM
  • Clarify supported Node version
  • Since utils.styleText was added in those Node versions, use it instead of direct codes for color-coded console output
  • Since v4 drops support of some ancient engines, some minification tricks (like splitting bundle to lines lower than 32kb) no longer required

Fixes #1272

@zloirock zloirock merged commit 03af299 into v4 Feb 4, 2026
56 checks passed
@zloirock zloirock deleted the v4-rd branch February 4, 2026 14:53
@slavbar
Copy link

slavbar commented Feb 5, 2026

thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants